﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Qianwei.Web.ueditor.dialogs.image
{
    public partial class upload : System.Web.UI.Page
    {
        public String Url = "222<2&amp;22";
        protected void Page_Load(object sender, EventArgs e)
        {
            //Url = filter(SiteFun.Query("Url"));
            Url = filter(Request["url"]);
            //Url = "martin";
        }

        /// <summary>
        /// 字符过滤
        /// </summary>
        /// <param name="Url"></param>
        /// <returns></returns>
        public String filter(String Url)
        {
            Url = Url.Replace("&", "&amp;");
            Url = Url.Replace("'", "&qpos;");
            Url = Url.Replace("\"", "&quot;");
            Url = Url.Replace("<", "&lt;");
            Url = Url.Replace(">", "&gt;");
            return Url;
        }
    }
}